Vcenter VM CreateSpec

Vcenter VM CreateSpec
Vcenter VM CreateSpec

Document-based creation spec.

JSON Example
{
    "guest_os": "string",
    "name": "string",
    "placement": {
        "folder": "string",
        "resource_pool": "string",
        "host": "string",
        "cluster": "string",
        "datastore": "string"
    },
    "hardware_version": "string",
    "boot": {
        "type": "string",
        "efi_legacy_boot": false,
        "network_protocol": "string",
        "delay": 0,
        "retry": false,
        "retry_delay": 0,
        "enter_setup_mode": false
    },
    "boot_devices": [
        {
            "type": "string"
        }
    ],
    "cpu": {
        "count": 0,
        "cores_per_socket": 0,
        "hot_add_enabled": false,
        "hot_remove_enabled": false
    },
    "memory": {
        "size_mib": 0,
        "hot_add_enabled": false
    },
    "disks": [
        {
            "type": "string",
            "ide": {
                "primary": false,
                "master": false
            },
            "scsi": {
                "bus": 0,
                "unit": 0
            },
            "sata": {
                "bus": 0,
                "unit": 0
            },
            "nvme": {
                "bus": 0,
                "unit": 0
            },
            "backing": {
                "type": "string",
                "vmdk_file": "string"
            },
            "new_vmdk": {
                "name": "string",
                "capacity": 0,
                "storage_policy": {
                    "policy": "string"
                }
            }
        }
    ],
    "nics": [
        {
            "type": "string",
            "upt_compatibility_enabled": false,
            "upt_v2_compatibility_enabled": false,
            "mac_type": "string",
            "mac_address": "string",
            "pci_slot_number": 0,
            "wake_on_lan_enabled": false,
            "backing": {
                "type": "string",
                "network": "string",
                "distributed_port": "string"
            },
            "start_connected": false,
            "allow_guest_control": false
        }
    ],
    "cdroms": [
        {
            "type": "string",
            "ide": {
                "primary": false,
                "master": false
            },
            "sata": {
                "bus": 0,
                "unit": 0
            },
            "backing": {
                "type": "string",
                "iso_file": "string",
                "host_device": "string",
                "device_access_type": "string"
            },
            "start_connected": false,
            "allow_guest_control": false
        }
    ],
    "floppies": [
        {
            "backing": {
                "type": "string",
                "image_file": "string",
                "host_device": "string"
            },
            "start_connected": false,
            "allow_guest_control": false
        }
    ],
    "parallel_ports": [
        {
            "backing": {
                "type": "string",
                "file": "string",
                "host_device": "string"
            },
            "start_connected": false,
            "allow_guest_control": false
        }
    ],
    "serial_ports": [
        {
            "yield_on_poll": false,
            "backing": {
                "type": "string",
                "file": "string",
                "host_device": "string",
                "pipe": "string",
                "no_rx_loss": false,
                "network_location": "string",
                "proxy": "string"
            },
            "start_connected": false,
            "allow_guest_control": false
        }
    ],
    "sata_adapters": [
        {
            "type": "string",
            "bus": 0,
            "pci_slot_number": 0
        }
    ],
    "scsi_adapters": [
        {
            "type": "string",
            "bus": 0,
            "pci_slot_number": 0,
            "sharing": "string"
        }
    ],
    "nvme_adapters": [
        {
            "bus": 0,
            "pci_slot_number": 0
        }
    ],
    "storage_policy": {
        "policy": "string"
    }
}
string
guest_os
Required

Guest OS.

For more information see: Vcenter Vm GuestOS.

string
name
Optional

Virtual machine name.

If missing or null, a default name will be generated by the server.

placement
Optional

Virtual machine placement information.

This property is currently required. In the future, if this property is missing or null, the system will attempt to choose suitable resources on which to place the virtual machine.

string
hardware_version
Optional

Virtual hardware version.

For more information see: Vcenter Vm Hardware Version.

If missing or null, defaults to the most recent version supported by the server.

boot
Optional

Boot configuration.

If missing or null, guest-specific default values will be used.

boot_devices
Optional

Boot device configuration.

If missing or null, a server-specific boot sequence will be used.

cpu
Optional

CPU configuration.

If missing or null, guest-specific default values will be used.

memory
Optional

Memory configuration.

If missing or null, guest-specific default values will be used.

disks
Optional

List of disks.

If missing or null, a single blank virtual disk of a guest-specific size will be created on the same storage as the virtual machine configuration, and will use a guest-specific host bus adapter type. If the guest-specific size is 0, no virtual disk will be created.

nics
Optional

List of Ethernet adapters.

If missing or null, no Ethernet adapters will be created.

cdroms
Optional

List of CD-ROMs.

If missing or null, no CD-ROM devices will be created.

floppies
Optional

List of floppy drives.

If missing or null, no floppy drives will be created.

parallel_ports
Optional

List of parallel ports.

If missing or null, no parallel ports will be created.

serial_ports
Optional

List of serial ports.

If missing or null, no serial ports will be created.

sata_adapters
Optional

List of SATA adapters.

If missing or null, any adapters necessary to connect the virtual machine's storage devices will be created; this includes any devices that explicitly specify a SATA host bus adapter, as well as any devices that do not specify a host bus adapter if the guest's preferred adapter type is SATA.

scsi_adapters
Optional

List of SCSI adapters.

If missing or null, any adapters necessary to connect the virtual machine's storage devices will be created; this includes any devices that explicitly specify a SCSI host bus adapter, as well as any devices that do not specify a host bus adapter if the guest's preferred adapter type is SCSI. The type of the SCSI adapter will be a guest-specific default type.

nvme_adapters
Optional

List of NVMe adapters.

This property was added in vSphere API 7.0.0.1.

If missing or null, any adapters necessary to connect the virtual machine's storage devices will be created; this includes any devices that explicitly specify a NVMe host bus adapter, as well as any devices that do not specify a host bus adapter if the guest's preferred adapter type is NVMe.

storage_policy
Optional

The Vcenter VM StoragePolicySpec schema contains information about the storage policy that is to be associated with the virtual machine home (which contains the configuration and log files).

This property was added in vSphere API 6.7.

If missing or null the datastore default storage policy (if applicable) is applied. Currently a default storage policy is only supported by object datastores : VVol and vSAN. For non-object datastores, if missing or null then no storage policy would be associated with the virtual machine home.

Parameter To